package cn.hfjava.kz.entity.excel;

import cn.hfjava.kz.common.enums.NongYeConverter;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Getter
@Setter
@NoArgsConstructor
public class StudentExcel {

    @ExcelProperty("姓名")
    private String name;
    @ExcelProperty("身份证号码")
    @ColumnWidth(20)
    private String identity;

    @ExcelProperty("民族")
    private String nation;
    @ExcelProperty("文化程度")
    @ColumnWidth(20)
    private String education;
    //考生来源
    @ExcelProperty("考生来源")
    @ColumnWidth(20)
    private String source;
    //是否农业户口
    @ExcelProperty(value = "是否农业户口", converter = NongYeConverter.class)
    private Integer nongYe;  // 将类型改为 Integer
    //手机号
    @ExcelProperty("联系电话")
    @ColumnWidth(20)
    private String phone;

    @ExcelProperty("工作学习简历（培训情况）")
    @ColumnWidth(20)
    private String remark;

    //从事本职年限
    @ExcelProperty("从事本职业年限")
    private Integer workAge;
    //备注

    //通讯地址
    @ExcelProperty("通讯地址（户籍所在地）")
    @ColumnWidth(40)
    private String address;
    //所在单位
    @ExcelProperty("所在单位")
    @ColumnWidth(40)
    private String workUnit;

}
